package com.yxs.wechatdemo.enums;

import lombok.Getter;

/**
 * Created by Administrator on 2018/10/25 0025.
 */
@Getter
public enum ResultEnum {
    SUCCESS(0, "操作成功"),
    PARAM_NOT_EXIST(90001, "参数不存在"),
    HANDLER_FAILED(90002, "操作操作失败"),
    UPLOAD_FAILED(90003, "上传失败"),
    TOKEN_NULL(90100, "token不能为空"),
    TOKEN_EXPIRE(90101, "token已过期");
    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
